package com.flyxteam.supports.hierarchy.abstracts;

import java.util.Map;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 所有组件类的抽象支持类
 * <ul>
 * <li>2017-01-01 | ChrisX | + create</li>
 * </ul>
 * @author ChrisX
 */
public abstract class AbstractComponentBeanSupport {

    /**
     * 日志对象
     */
    protected final Logger logger = LoggerFactory.getLogger(getClass());
    protected Logger getLogger() {
        return logger;
    }
    
    /**
     * 存储属性文件的缓存
     * <ul>
     * <li>依赖spring中定义的beanId</li>
     * </ul>
     */
    @Resource
    protected Map<String, String> configProperties;
    protected Map<String, String> getConfigProperties() {
        return configProperties;
    }

}
